from pydantic import BaseModel
from typing import Any, Dict, Optional

class Item(BaseModel):
    namespace: Any
    key: str
    value: Any


class HistoryRecord(BaseModel):
    """单条历史记录模型"""
    title: str
    session_id: str
    create_time: str
    update_time: Optional[str] = None